package com.how2java.action;

import java.util.Date;

import com.how2java.bean.Product;

public class ProductAction {
	private Product product;
	 
    public String show() {
        product = new Product();
        product.setName(new Date().toLocaleString());
        return "show";
    }
    
    public String add() {
    	System.out.println("product.name:"+product.getName());
        return "add";
    }
 
    public Product getProduct() {
        return product;
    }
 
    public void setProduct(Product product) {
        this.product = product;
    }
}
